import { request } from './request'

//商铺详情左侧数据
const selectProductLabelList = (params) => {
  return request('/productLabel/selectProductLabelList', params, 'POST')
}

//商铺详情右侧数据
const selectProduct = (params) => {
  return request('/spmk/selectProduct', params, 'POST')
}

//商铺详情评论数据接口
const selectEvaluate = (params) => {
  return request('/sjmk/selectEvaluateId', params, 'GET')
}

//商铺分类列表
const selectLabelList = (params) => {
  return request('/xbqmk/selectLabelList', params, 'POST')
}
//全部已读
const updateUserMesread = (params) => {
  return request('/userMessage/updateUserMesread', params, 'POST')
}
//消息列表
const queryUserMes = (params) => {
  return request('/userMessage/queryUserMes', params, 'GET')
}
//是否未读
const getUserNotReadCount = (params) => {
  return request('/userMessage/getUserNotReadCount', params, 'POST')
}
// 轮播图接口
const getCarouselImage = (state) => {
  return request('/app/common/getCarouselImage/' +state, 'GET')
}
//入驻表单
const registration = (params) => {
  return request('/app/common/registration', params, 'POST')
}
export {
  selectProductLabelList,
  selectProduct,
  selectEvaluate,
  selectLabelList,
  updateUserMesread,
  queryUserMes,
  getUserNotReadCount,
  getCarouselImage,
  registration
}

